<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="../template/userTemplate.xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="titulo">.: INGREDIENTE :.</ui:define>
	<ui:define name="principal">


			<h:form id="formIngrediente">
			<p:growl life="3000"/>
			
			
			<p:panel header="Lista dos Ingredientes" toggleable="true">
				

					<p:dataTable id="ingrediTable" var="ing" value="#{ingredienteBean.ingredientes}"
						emptyMessage="Nenhum ingrediente cadastrado." rows="10" paginator="true">
						
						<h:inputHidden value="#{ingredienteBean.ingrediente.id}"/>
						<p:column headerText="Ingrediente">
							<h:outputText value="#{ing.nome}" />
						</p:column>
						
						<p:column headerText="Materia">
							<h:outputText value="#{ing.materiaPrima.nome}" />
						</p:column>

						<p:column  headerText="Quantidade">
							<h:outputText value="#{ing.qtd}" />
						</p:column>
						
						<p:column  headerText="Medida">
							<h:outputText value="#{ing.medida}" />
						</p:column>
						
					</p:dataTable>
					</p:panel>

				</h:form>


</ui:define>
</ui:composition>